package com.tjp.subject.domain.convert;

import com.tjp.subject.domain.entity.SubjectInfoBO;
import com.tjp.subject.domain.entity.SubjectOptionBO;
import com.tjp.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @program: jz-club
 * @description: 题目信息实体转换接口
 * @author: aaronTang
 * @create: 2024-02-29
 */
@Mapper
public interface SubjectInfoConverter {

    SubjectInfoConverter  INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo subjectInfoConvertBOToEntity(SubjectInfoBO subjectInfoBO);

    SubjectInfoBO convertOptionBOAndSubjecInfoToInfoBO(SubjectOptionBO subjectOptionBO, SubjectInfo subjectInfo);

    List<SubjectInfoBO> convertListInfoToBO(List<SubjectInfo> list);


}
